<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
   



         
        <script>

             

              function  Person(name){
                  this.name=name 
              }
              var pp=new Person('小明')
              console.log(pp) //this => pp

              function  person(){
                  console.log(this)
              }

              person() //// this => window

              /* 
                 1.this => window
                 2.指向所属对象
                 3.指向对象的实例
                 4.还有可能是数组 arguments  等等

              */
                     
                    
               

                
                

             









        </script>

      
</body>
</html>